home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
216_01
/
progs.doc
< prev
next >
Wrap
Text File
|
1980-01-01
|
35KB
|
859 lines
UUUUNNNNDDDDOOOOSSSS((((1111)))) XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((OOOOMMMMEEEENNNN)))) UUUUNNNNDDDDOOOOSSSS((((1111))))
NNNNAAAAMMMMEEEE
undos,tounix,todos,tocpm,tomac,unmac,unparity - Change ASCII
file format for target operating system
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
uuuunnnnddddoooossss [ ----ssss ] file ...
ttttoooouuuunnnniiiixxxx [ ----ssss ] file ...
ttttooooddddoooossss [ ----ssss ] file ...
ttttooooccccppppmmmm [ ----ssss ] file ...
uuuunnnnmmmmaaaacccc [ ----ssss ] file ...
ttttoooommmmaaaacccc [ ----ssss ] file ...
uuuunnnnppppaaaarrrriiiittttyyyy file ...
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
UUUUnnnnddddoooossss and ttttoooouuuunnnniiiixxxx convert DOS or CP/M format source files to
Unix format by deleting carriage returns preceding linefeeds
and eliminating characters starting with CPMEOF (^Z).
TTTTooooddddoooossss converts Unix format source files to DOS format by
adding a carriage return (if not already present) before
each linefeed, and eliminates characters starting with
CPMEOF (^Z). TTTTooooccccppppmmmm additionally appends CPMEOF (^Z)
characters to the resulting file to make the file length a
multiple of the 128 byte CP/M record length.
Any combination of uuuunnnnddddoooossss,,,, ttttooooddddoooossss,,,, or ttttooooccccppppmmmm (without flags)
may be applied to a proper ASCII file without destroying
information. Lone carriage returns used to force
overprinting are not translated to CR/LF pairs.
UUUUnnnnmmmmaaaacccc converts files with lines terminated only by carriage
return to Unix format. UUUUnnnnmmmmaaaacccc should only be used to
translate files whose lines are terminated by lone carriage
returns.
TTTToooommmmaaaacccc converts Unix format files to Macintosh format (lines
terminated by carriage return only).
The optional flag ----ssss Strips the parity bit on all characters
and discards all resulting characters with values less than
7.
UUUUnnnnppppaaaarrrriiiittttyyyy merely strips the parity bit from the files.
The access and modification times of the modified files are
set to those of the original files.
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Refuses to translate files in which "binary" characters
(less than 7 or greater than 127) are seen before CPMEOF.
Refuses to translate files with ultra long lines. Refuses
to translate special files.
Page 1 (printed 1/9/87)
UUUUNNNNDDDDOOOOSSSS((((1111)))) XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((OOOOMMMMEEEENNNN)))) UUUUNNNNDDDDOOOOSSSS((((1111))))
NNNNOOOOTTTTEEEESSSS
Should be executed with the current directory in the same
filesystem as the target files for minimum disk i/o.
BBBBUUUUGGGGSSSS
Does not detect short files without linefeeds. UUUUnnnnmmmmaaaacccc and
ttttoooommmmaaaacccc cannot handle files with CR-only overprinting. (ASCII
allows either LF or CR/LF to delimit lines, but not CR.)
SSSSEEEEEEEE AAAALLLLSSSSOOOO
lar(1), yam(1), sq(1), usq(1), rb(omen), sb(omen)
Page 2 (printed 1/9/87)
RRRRZZZZ((((1111)))) XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((OOOOMMMMEEEENNNN)))) RRRRZZZZ((((1111))))
NNNNAAAAMMMMEEEE
rb, rz - XMODEM, YMODEM, ZMODEM (Batch) file receive
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
rrrrzzzz [- ++++1111aaaabbbbppppqqqqttttuuuuvvvv]
rrrrbbbb [- ++++1111aaaabbbbqqqqttttuuuuvvvv]
rrrrzzzz [- 1111aaaabbbbccccqqqqttttuuuuvvvv] _f_i_l_e
ggggzzzz _f_i_l_e ...
[----][vvvv]rrrrzzzzCCCCOOOOMMMMMMMMAAAANNNNDDDD
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This program uses error correcting protocol to receive files
over a serial port from a variety of programs running under
PC-DOS, CP/M, Unix, and other operating systems.
The first form of _r_z (Receive ZMODEM) receives files with
the ZMODEM batch protocol. If the sending program does not
support ZMODEM, _r_z steps down to YMODEM protocol after 50
seconds. This delay can be eliminated by calling the
program as _r_b .
When receiving with XMODEM or YMODEM, _R_z accepts either
standard 128 byte sectors or 1024 byte sectors (YAM ----kkkk
option). The user should determine when the longer block
length actually improves throughput without causing
problems.
If extended file information (file length, etc.) is
received, the file length controls the number of bytes
written to the output dataset (YMODEM only), and the modify
time and file mode (iff non zero) are set accordingly.
If no extended file information is received, slashes in the
pathname are changed to underscore, and any trailing period
in the pathname is eliminated. This conversion is useful
for files received from CP/M systems. With YMODEM, each
file name is converted to lower case unless it contains one
or more lower case letters.
The second form of _r_z receives a single _f_i_l_e with XMODEM
protocol. The user must supply the file name to both
sending and receiving programs.
_G_z is a shell script which calls _s_z to command a Pro-YAM or
compatible program to transmit the specified files.
Pathnames used with _g_z must be escaped if they have special
significance to the Unix shell.
EXAMPLE: gz "-1 C:*.c D:*.h"
The third form of _r_z is invoked as rrrrzzzzCCCCOOOOMMMMMMMMAAAANNNNDDDD (with an
Page 1 (printed 1/9/87)
RRRRZZZZ((((1111)))) XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((OOOOMMMMEEEENNNN)))) RRRRZZZZ((((1111))))
optional leading - as generated by login(1)). For each
received file, rz will pipe the file to ``COMMAND filename''
where filename is the name of the transmitted file with the
file contents as standard input.
Each file transfer is acknowledged